<script language="javascript">
var dialogWidth=$(window).width()*0.2;
var dialogHeight=$(window).height()*0.06*1;
$(function(){
	$("#searchBtn").click(function(){
		artDialog(
		        {	
			        'title':'按条件查询',
			        width:dialogWidth,
			        height:  dialogHeight ,
			        okVal:"查询",
			        cancelVal:'关闭',
		            content:"<form id='searchForm' method='get' action='/user/check'>"+$('#searchdiv').html()+"</form>",
		            lock:true,
		        },
		        function(){
		                $('#searchForm').submit();
		        },
		        function(){
		            return true;
		        }
		);
		});
});
</script>
<!--  搜索表单  -->
<div  id="searchdiv" style="display:none;">
<input  type='hidden'  name='sid' value='<?php echo $sid?>'/>
 <table style="width:100%;height:100%" border=0>
	<tr>
	<td valign='middle' align="right"  style="padding:1  1 1 1;width:20%"   >选择条件：</td>
	<td valign='middle' style="padding:1  1 1 1;width:80%"   >
		<select name='days'>
		<option value = "0">今天有交易用户</option>
		<option value = "2">2天内有交易用户</option>
		<option value = "5">5天内有交易用户</option>
		<option value = "7">7天内有交易用户</option>
		<option value = "10">10天内有交易用户</option>
		<option value = "30">30天内有交易用户</option>
		<option value = "60">60天内有交易用户</option>
		<option value = "90">90天内有交易用户</option>
		<option value = "all">所有用户</option>
		</select>
	</td>
	</tr>
 </table>
  <input  type="submit" value="提交"   style="display:none" />
</div>
<div class="container-fluid">
    <div class="widget-box">
		<div class="widget-title">
			<span class="icon">
				<i class="icon-th"></i>
			</span>
		<h5>用户资金异常列表</h5>
		<span style="height:38px;line-height:38px;">
			<input class="btn btn-success btn-mini" type="button" style="cursor:pointer" id='searchBtn'  value="搜索条件">
		</span>
		</div>
		<div class="widget-content nopadding">
			<table   style="width:100%" class='table table-bordered table-striped'>
				<thead>
				<tr class="strong">
					<th>UID</th>
					<th>昵称</th>
					<th>CNY账户余额</th>
					<th>充值</th>
					<th>提现</th>
					<th >已实现盈利</th>
					<th >CFD持仓保证金</th>
					<th >CFD交易手续费</th>
					<th >CFD交易提成</th>
					<th >应得账户余额</th>
					<th >状态</th>
				</tr>
				</thead>
				<tbody>
				<?php if(!empty($page_data)) foreach($page_data as $items){?>
				<tr>
					<td><a href="/user/detail?sid=<?php echo $sid?>&uid=<?php echo $items['uid']?>" style="text-decoration:underline"><?php echo $items['uid'];?></a></td>
					<td><?php echo $items['nickname'];?></td>
					<td>￥<?php echo bcadd($items['cny'],0,2);?></td>
					<td><?php echo $items['deposit'];?></td>
					<td><?php echo $items['withdraw'];?></td>
					<td><?php echo $items['history_yk'];?></td>
					<td><?php echo $items['chi_cny'];?></td>
					<td><?php echo $items['fee'];?></td>
					<td><?php echo $items['invite'];?></td>
					<td><?php echo $items['deserved'];?></td>
					<td style="color:red;">资金异常</td>
				</tr>            		
				<?php }?>
				</tbody>
			</table>
		</div>
  </div>
  </div>